package com.eight.paper.admin.mapper;

import com.eight.paper.admin.domain.ExamPaperQuestion;
import com.eight.paper.admin.domain.model.ExamPaperQuestionBody;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 考试试题Mapper接口
 * 
 * @author eight
 * @date 2023-10-31
 */
public interface ExamPaperQuestionMapper 
{
    /**
     * 批量新增考试试题
     *
     * @param questions 考试试题
     * @return 结果
     */
    void insertExamPaperQuestions(@Param("questions") List<ExamPaperQuestionBody> questions);

    /**
     * 根据paperId删除试卷试题
     * @param id
     */
    void deleteExamPaperQuestionByPaperId(Integer id);

}
